<%@ Register TagPrefix="cc1" Namespace="Pluspetrol.Core.UIControls.WebControls" Assembly="Pluspetrol.Core.UIControls" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ABMAntecedenteConcurso.ascx.cs" Inherits="ConcursoCV.UI.WebUserControls.Concurso.ABMAntecedenteConcurso" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table style="BORDER-RIGHT: #035ac4 1px solid; BORDER-TOP: #035ac4 1px solid; BORDER-LEFT: #035ac4 1px solid; BORDER-BOTTOM: #035ac4 1px solid"
	height="100%" cellSpacing="-1" cellPadding="-1" width="100%">
	<tr>
		<td class="titulo_2">Detalle Tipo Antecedente</td>
	</tr>
	<tr>
		<td vAlign="top">
			<table cellSpacing="-1" cellPadding="-1" width="100%">
				<tr>
					<td colSpan="4">&nbsp;</td>
				</tr>
				<tr>
					<td width="5%">&nbsp;</td>
					<td class="label" width="20%">Nombre:</td>
					<td><asp:textbox id="txtNombre" Runat="server" Width="100%" CssClass="controles" ReadOnly="True"></asp:textbox></td>
					<td width="30%">&nbsp;</td>
				</tr>
				<tr>
					<td class="espacio" colSpan="4">&nbsp;</td>
				</tr>
				<tr>
					<td width="5%">&nbsp;</td>
					<td style="BORDER-RIGHT: #035ac4 1px solid; BORDER-TOP: #035ac4 1px solid; BORDER-LEFT: #035ac4 1px solid; BORDER-BOTTOM: #035ac4 1px solid"
						colSpan="2"><asp:radiobuttonlist id="rblTipo" Runat="server" Width="100%" CssClass="label" RepeatDirection="Horizontal">
							<asp:ListItem Value="2" Selected="True">No Espec&#237;fico</asp:ListItem>
							<asp:ListItem Value="1">Espec&#237;fico</asp:ListItem>
						</asp:radiobuttonlist></td>
					<td width="30%">&nbsp;</td>
				</tr>
				<tr>
					<td class="espacio" colSpan="4">&nbsp;</td>
				</tr>
				<tr>
					<td class="espacio" colSpan="4">&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td class="label" width="20%">Metrica:</td>
					<td><asp:textbox id="txtMetrica" Runat="server" Width="100%" CssClass="controles"></asp:textbox></td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td class="espacio" colSpan="4">&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td class="label" width="20%">Tope:</td>
					<td><asp:textbox id="txtTope" Runat="server" Width="100%" CssClass="controles"></asp:textbox></td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td colSpan="4">&nbsp;</td>
				</tr>
				<tr>
					<td align="center" colSpan="4">
						<table cellSpacing="0" cellPadding="0" width="90%">
							<tr>
								<td align="left"><asp:Label ID="lblConfirmacionOperacion" CssClass="label" Runat="server"></asp:Label>
								</td>
								<td align="right"><asp:button id="btnAceptar" CssClass="boton" Text="Aceptar" runat="server"></asp:button>&nbsp;
									<asp:button id="btnCancelar" CssClass="boton" Text="Cancelar" runat="server"></asp:button></td>
							</tr>
						</table>
					</td>
				</tr>
				<TR>
					<td colSpan="4">&nbsp;</td>
				</TR>
				<tr>
					<td align="center" colSpan="4">
						<table cellSpacing="0" cellPadding="0" width="90%">
							<tr>
								<td class="separador">&nbsp;</td>
							</tr>
							<tr>
								<td class="titulo_3">Listado de Adhocs</td>
							</tr>
							<tr>
								<td><asp:datagrid id="dtgAdhocs" Width="100%" runat="server" AutoGenerateColumns="False">
										<AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
										<ItemStyle CssClass="ItemStyle"></ItemStyle>
										<HeaderStyle CssClass="HeaderGrid"></HeaderStyle>
										<Columns>
											<asp:BoundColumn Visible="False" DataField="Id" HeaderText="Id"></asp:BoundColumn>
											<asp:BoundColumn DataField="Descripcion" HeaderText="Nombre"></asp:BoundColumn>
											<asp:TemplateColumn HeaderText="Modificar">
												<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
												<ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
												<ItemTemplate>
													<asp:ImageButton ID="btnModificar" CommandName="Modificar" Runat="server" ImageUrl="../../img/icons/EDITITEM.GIF"></asp:ImageButton>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn HeaderText="Eliminar">
												<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
												<ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
												<ItemTemplate>
													<cc1:ConfirmImageButton id="btnDelete" runat="server" CommandName="Eliminar" ImageUrl="../../img/icons/DELETEITEM.GIF"
														ToolTip="Eliminar" ConfirmMessage="&iquest;Est&aacute; seguro que desea eliminar el adhoc?"></cc1:ConfirmImageButton>
												</ItemTemplate>
											</asp:TemplateColumn>
										</Columns>
									</asp:datagrid></td>
							</tr>
							<tr>
								<td class="bordeGrillaDeAbajo" align="right">
									<table cellSpacing="0" cellPadding="0" width="100%">
										<tr>
											<td align="left">&nbsp; # Cantidad de registros:
												<asp:label id="lblCount" runat="server"></asp:label></td>
											<td align="right"><asp:button id="btnAgregarAdhoc" CssClass="boton" Text="Agregar Adhocs" runat="server"></asp:button></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td colSpan="4">&nbsp;</td>
				</tr>
				<tr>
					<td align="center" colSpan="4"><asp:panel id="pnlAtributo" Runat="server" Visible="False">
							<TABLE cellSpacing="0" cellPadding="0" width="90%">
								<TR>
									<TD class="espacio" colSpan="4">&nbsp;
										<asp:ValidationSummary id="valSum" runat="server"></asp:ValidationSummary></TD>
								</TR>
								<TR>
									<TD>&nbsp;</TD>
									<TD class="label" width="10%">Nombre:</TD>
									<TD width="70%">
										<asp:textbox id="txtNombreAdhoc" CssClass="controles" Width="90%" Runat="server" MaxLength="50"></asp:textbox>
										<asp:RequiredFieldValidator id="rfvNombreAdhoc" runat="server" ErrorMessage="Ingrese un nombre para el Adhoc"
											ControlToValidate="txtNombreAdhoc">*</asp:RequiredFieldValidator></TD>
									<TD></TD>
								</TR>
								<TR>
									<TD class="espacio" colSpan="4">&nbsp;</TD>
								</TR>
								<TR>
									<TD align="right" colSpan="4">
										<asp:button id="btnAgregar" CssClass="boton" runat="server" Text="Aceptar"></asp:button>&nbsp;
										<asp:button id="btnCancelarAgregar" CssClass="boton" runat="server" Text="Cancelar"></asp:button></TD>
								</TR>
							</TABLE>
						</asp:panel></td>
				</tr>
				<TR>
					<td colSpan="4">&nbsp;</td>
				</TR>
			</table>
		</td>
	</tr>
</table>
<script>	
function isNumberKey(evt)
{
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57))
    return false;

    return true;
}
</script>
